USE DB_TCC
IF EXISTS(SELECT 1 FROM SYSOBJECTS WHERE NAME LIKE 'P_REDESOCIAL_ALTERAR')
	DROP PROCEDURE P_REDESOCIAL_ALTERAR
GO
CREATE PROCEDURE P_REDESOCIAL_ALTERAR(
	@IDREDESOCIAL	INTEGER,
	@DESCREDESOCIAL	VARCHAR(50),
	@USUARIO		VARCHAR(100))
AS BEGIN
	UPDATE
		REDESOCIAL
	SET
		DESCREDESOCIAL = @DESCREDESOCIAL,
		USUARIOALTERACAO = @USUARIO,
		DTHRALTERACAO = GETDATE()
	WHERE
		IDREDESOCIAL = @IDREDESOCIAL
END